package com.mark.service;

import com.github.pagehelper.PageInfo;
import com.mark.common.ServerResponse;
import com.mark.vo.OrderVo;

/**
 * Created by Mark on 2018/3/29.
 */
public interface IOrderService {
    ServerResponse createOrder(Integer currentUserId, Integer shippingId);

    ServerResponse cancelOrder(Integer currentUserId, Long orderNo);

    ServerResponse getOrderCartProduct(Integer currentUserId);

    ServerResponse getOrderDetail(Integer currentUserId, Long orderNo,Integer sellerId);

    ServerResponse getOrderList(Integer currentUserId, int pageNum, int pageSize);

    ServerResponse<PageInfo> manageList(int pageNum, int pageSize);

    ServerResponse<OrderVo> manageDetail(Long orderNo);

    ServerResponse<PageInfo> manageSearch(Long orderNo, int pageNum, int pageSize);

    ServerResponse<String> manageSendGoods(Long orderNo);

    ServerResponse getSellerOrderList(Integer sellerId, int pageNum, int pageSize);

    ServerResponse<String> sellerSendGoods(Long orderNO, Integer sellerId);

    ServerResponse getGoods(Integer id, Long orderNo);

    ServerResponse<PageInfo> sellerSearchOrder(Long orderNo, int pageNum, int pageSize, Integer id);

    ServerResponse<PageInfo> searchOrderPayed(int pageNum, int pageSize, Integer id);
}
